﻿@model AppNet.Models.CompanyInfor



@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>CompanyInfor</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.LogoFile)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LogoFile)
            @Html.ValidationMessageFor(model => model.LogoFile)
            <input type="button" id="SelectLogoFile" value="Browse Server" />
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.BannerFile)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.BannerFile)
            @Html.ValidationMessageFor(model => model.BannerFile)
            <input type="button" id="SelectBannerFile" value="Browse Server" />
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
<script type="text/javascript" >
    $(document).ready(function () {
        $("#SelectLogoFile").BrowserFileServer("#LogoFile");
        $("#SelectBannerFile").BrowserFileServer("#BannerFile");
        $('#Description').ckeditor();
    });
</script>

@Scripts.Render("~/bundles/jqueryval")
}
